<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/html5.js"></script>
<script type="text/javascript" src="../Public/js/respond.min.js"></script>
<script type="text/javascript" src="../Public/js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="App/Admin/View/Public/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="App/Admin/View/Public/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="App/Admin/View/Public/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="../Public/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title></title>
</head>
<body>

<div class="pd-20">
  <div class="Huiform">
    <form action="" method="post" id="form1" enctype="multipart/form-data" name="form1" onsubmit="return check();">
      <table class="table radius table-striped table-hover  " >
        <tbody>

           <tr>
            <th  width="280" class="text-r" ><span class="c-red">*</span> 商品图片：</th>
            <td><input type="file" style="width:270px" class="input-text"  name="pic">
    
      </td>
          </tr>
          <tr>
            <th  width="280" class="text-r" ><span class="c-red">*</span> 商品标题：</th>
            <td><input type="text" style="width:270px" class="input-text" placeholder="商品标题" value="" name="name">
    
      </td>
          </tr>
     
         
            <tr>
            <th class="text-r"><span class="c-red">*</span> 风格分类：</th>
            <td><select name="fengge" style="width: 280px;" class="input-text" >
                                    <volist name="list" id="vo" > 
                                            <option value="{$vo.type_name}">{$vo.type_name}</option>
                                    </volist>        
                                         
                                    </select>
                                  
      </td>
          </tr>
     
                         <tr>
            <th class="text-r"><span class="c-red">*</span> 户型分类：</th>
            <td><select name="huxing" style="width: 280px;" class="input-text" >
                                    <volist name="ljj" id="vo" > 
                                            <option value="{$vo.huxing}">{$vo.huxing}</option>
                                    </volist>        
                                         
                                    </select>
                                  
      </td>
          </tr>

          <tr>
            <th  width="280" class="text-r" ><span class="c-red">*</span> 装修面积：</th>
            <td><input type="text" style="width:270px" class="input-text" placeholder="平方" value="" name="area"><span style=" font-size:16px;">m²</span>

    
      </td>
          </tr>
          <tr>
            <th  width="280" class="text-r" ><span class="c-red">*</span> 装修价格：</th>
            <td><input type="text" style="width:270px" class="input-text" placeholder="价格" value="" name="price"><span style=" font-size:16px;">元/m²
    </span>
      </td>
          </tr>
              <tr>
            <th  width="280" class="text-r" ><span class="c-red">*</span> 联系qq：</th>
            <td><input type="text" style="width:270px" class="input-text" placeholder="qq" value="" name="qq"><span style=" font-size:16px;">
    </span>
      </td>
          </tr>



       <tr>
            <th class="text-r">商品详情内容 ：</th>
            <td>
            
          
              <script type="text/javascript" src="App/Admin/View/Public/ue/ueditor.config.js"  charset="utf-8" ></script>
              <script type="text/javascript" src="App/Admin/View/Public/ue/ueditor.all.js"  charset="utf-8" ></script>
              <script type="text/javascript" src="App/Admin/View/Public/ue/lang/zh-cn/zh-cn.js" charset="utf-8" ></script>

              <script type="text/javascript">
                var ue = UE.getEditor('container');
           
              </script>
       
                 <script type="text/plain" id="container" name="intro" style="width:80%;height:260px"></script>

             
      </td>
          </tr>
          <tr>
            <th></th>
            <td><button class="btn btn-success radius" id="submit" type="submit"><i class="icon-ok"></i>确定</button></td>
          </tr>
        </tbody>
      </table>

    </form>
  </div>
</div>
<script type="text/javascript" src="App/Admin/View/Public/js/jquery.min.js"></script>
<script type="text/javascript" src="App/Admin/View/Public/js/jquery.form.js"></script>
<script type="text/javascript" src="App/Admin/View/Public/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="../Public/layer/layer.js"></script>
<script type="text/javascript">

function check(){

  if (document.form1.pic.value=='') {
    layer.alert('图片不能为空');
    document.form1.pic.focus();
    return false;
  }
if (document.form1.name.value=='') {
      layer.alert('标题不能为空');
    document.form1.name.focus();
    return false;
}
if (document.form1.area.value=='') {
      layer.alert('面积不能为空');
    document.form1.area.focus();
    return false;
}

if (document.form1.price.value=='') {
      layer.alert('价格不能为空');
    document.form1.price.focus();
    return false;
}

if (UE.getEditor('container').hasContents()=='') {
layer.alert('输入详情内容');
return false;
}


}

</script>

</body>
</html>